from onnxconverter_common import float16
import onnx

model = onnx.load("v1_onnx.onnx")
model_fp16 = float16.convert_float_to_float16(model, keep_io_types=True)
onnx.save(model_fp16, "v1_onnx_fp16.onnx")
